<div class="bg-light lter b-b wrapper-md">
    <h4 class="m-n font-thin">添加返利类别</h4>
    <!--<button onClick="javascript: history.go(-1);" class="btn-back btn btn-dark btn-sm btn-rounded">-->
        <!--返回-->
    <!--</button>-->
</div>

<div class="wrapper" ng-controller="rebateGoodsAddCtrl">
    <div class="panel panel-body padder-md">
        <!--返利类型-->
        <div>
            <div class="padder-md padder-v bg-light m-b-sm">
                <span class="font-bold">返利类别信息</span>
            </div>
            <div>
                <form name="rebateCategoryForm" ng-submit="add()">
                    <div class="form-horizontal form-validation">
                        <div class="form-group">
                            <label class="col-sm-1 control-label">返利类型名字</label>
                            <div class="col-sm-4">
                                <input type="text" name="name" ng-model="rebateGoodsService.rebateCategoryAddVO.name" class="form-control m-b-xs" placeholder="请输入返利类型名字" required>
                                <div ng-if="rebateCategoryForm.name.$touched">
                                    <p ng-if="rebateCategoryForm.name.$error.required" class="text-danger h6">返利类型名字是必需的</p>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">结束价格</label>
                            <div class="col-sm-4">
                                <input type="text" name="endPrice" ng-model="rebateGoodsService.rebateCategoryAddVO.endPrice" class="form-control m-b-xs" placeholder="请输入结束价格" required>
                                <div ng-if="rebateCategoryForm.endPrice.$touched">
                                    <p ng-if="rebateCategoryForm.endPrice.$error.required" class="text-danger h6">结束价格是必需的</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div>
                        <div class="col-sm-4 padder-v col-sm-offset-2">
                            <button type="submit" class="btn btn-success"  ng-disabled="rebateCategoryForm.$invalid">保存</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>